﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Validity.Test
{
  [TestClass]
  public class VerifyTest
  {
    [TestMethod]
    public void TestNullWithNullValue()
    {
      Verify.Null((Object)null);
    }

    [TestMethod]
    [ExpectedException(typeof(ArgumentException))]
    public void TestNullWithNonNullValue()
    {
      Verify.Null(new Object());
    }

    [TestMethod]
    [ExpectedException(typeof(ArgumentException))]
    public void TestNotNullWithNullValue()
    {
      Verify.NotNull((Object)null);
    }

    [TestMethod]
    public void TestNotNullWithNonNullValue()
    {
      Verify.NotNull(new Object());
    }

    [TestMethod]
    [ExpectedException(typeof(ArgumentException))]
    public void TesTrueWithFalseValue()
    {
      Verify.True(false);
    }

    [TestMethod]
    public void TesTrueWithTrueValue()
    {
      Verify.True(true);
    }

    [TestMethod]
    public void TesFalseWithFalseValue()
    {
      Verify.False(false);
    }

    [TestMethod]
    [ExpectedException(typeof(ArgumentException))]
    public void TesFalseWithTrueValue()
    {
      Verify.False(true);
    }
  }
}
